import request from '@/utils/httpRequest'

//平台列表获取
export function getPlayform (data = {}) {
  return request({
    url: '/bihs/search-platform/list',
    method: 'get',
    data
  })
}
// 平台状态更新

export function updatePlatformStatus (params = {}) {
  return request({
    url: '/bihs/search-platform/enabled',
    method: 'post',
    params
  })
}

// 大淘客商品栏目获取
export function getTkTagsList (data = {}) {
  return request({
    url: '/bihs/tag/search',
    method: 'post',
    data
  })
}
// 大淘客商品栏目删除
export function deleteTkTag (params = {}) {
  return request({
    url: '/bihs/tag/delete',
    method: 'delete',
    params
  })
}

//大淘客商品同步
export function syncTkTag (params = {}) {
  return request({
    url: '/bihs/tag/sync',
    method: 'get',
    params
  })
}

//多多客商品类目获取
export function getDdkList (data = {}) {
  return request({
    url: '/bihs/category/search',
    method: 'post',
    data
  })
}

//多多可商品类目上下架状态更新
export function setDdkStatus (params = {}) {
  return request({
    url: '/bihs/category/set/status',
    method: 'get',
    params
  })
}

// 多多客商品类目同步
export function syncDdkCategory (params = {}) {
  return request({
    url: '/bihs/category/sync',
    method: 'get',
    params
  })
}
// 获取碧划算最喜欢商品id 供查询商品列表使用
export function getFavorSubjec (data = {}) {
  return request({
    url: '/bihs/favorites/subject/get',
    method: 'post',
    data
  })
}
// 获取碧划算商品库
export function getBhsFavorGoods (data = {}) {
  return request({
    url: '/bihs/favorites/goods/search',
    method: 'post',
    data
  })
}
// 选品库商品管理
export function favorGoodsManage (data = {}) {
  return request({
    url: '/bihs/favorites/goods/manage',
    method: 'post',
    data
  })
}
// 商品库同步
export function syncGoods (params = {}) {
  return request({
    url: '/bihs/favorites/goods/sync',
    method: 'get',
    params
  })
}
